<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>京东账号-注册</title>
		<link rel="icon" type="text/css" href="img/icon/favicon.ico"/>
		<link rel="stylesheet" type="text/css" href="zhuce.css"/>
			<style type="text/css">		
		</style>
		<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
		<script type="text/javascript">
			$(function(){
				$('.b1').click(function(){
					var phone = $("[name=nick]").val();
					var name = $("[name=name]").val();
					var regPhone = /^1[35789]\d{9}$/;
					if(phone==''||name==''){
						alert('用户名或密码不能为空');
					}else if(regPhone.test(phone)==false){
						alert('手机号格式不正确！');
					}else if(name.length<6){
						alert('密码长度不能小于6！')
					}else{
						var array = new Array();
						var zhanghao = phone;
						var name2 = name;
						console.log(name2);
						var deng = {
							zhanghao:zhanghao,
							name2:name2
						}
						array.push(deng);
						var dengstr = JSON.stringify(array);
						localStorage.setItem('dengstr',dengstr);
						window.location.href = 'dengru.html';
					}
					
				})
				
			})
		</script>
		
	</head>
	<body>
	<div class="aaa">
        <div class="div1">
			<div class="div1-1">
				<img class="imgg" src="img/hehe.png" width="49px" height="48px"/>
			</div>
			<p class="hh">注册京东账号</p>
		    <div class="wudi">
				<!--<form action="" method="post" id="loginForm1">-->
					<p>国家/地区</p>
					<label class="nick left"></label>
					<input class="input1" type="text" name="nick" required value="" /><br />
					<p>成功注册帐号后，国家/地区将不能被修改</p>
					<p>手机号码</p>
					<label class="nick left"></label>
					<input class="input1" type="text" name="name" required="required" value="" /><br />
					<button class="b1"><a href="javascript:void(0)" style="color: white;">立即注册</a></button>		
				<!--</form>-->
		    </div>
			<p class="pp">已阅读并同意：京东<strong>用户协议</strong>和<strong>隐私政策</strong> </p>
	    </div>
				     	
     		<div class="d3">
				<div class="ull">
					<ul class="u1">
						<li><a href="#">简体</a></li> 
						<li><a href="#">丨</a></li>
						<li><a href="#">繁体</a></li>
						<li><a href="#">丨</a></li>
						<li><a href="#">English</a></li>
						<li><a href="#">丨</a></li>
						<li><a href="#">常见问题	</a></li>
						<li><a href="#">丨</a></li>
						<li><a href="#">隐私政策</a></li>         	   
					</ul>
					
				</div>
				<p class="p1">京东公司版权所有-京ICP备10046444-京公网安备11010802020134号-京ICP证110507号</p>
			</div>
	    </div>
	</body>
</html>
